package com.project.service.impl;

import com.project.bean.SubContentBean;
import com.project.mapper.ISubContentMapper;
import com.project.service.ISubContentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author lyl
 * description:回帖业务实现类
 */
@Service
@Transactional
public class SubContentServiceImpl implements ISubContentService {
    @Autowired
    private ISubContentMapper iSubContentMapper;

//
//    @Override
//    public PageInfo<SubContentBean> showSCByMCId(int pageNo, int mainContentId) {
//        PageHelper.startPage(pageNo, 3);
//        PageInfo<SubContentBean> info = PageInfo.of(iSubContentMapper.showSCByMCId(mainContentId));
//        return info;
//    }

    @Override
    public void addSC(SubContentBean subContentBean, int userId, int mainContentId) {
        iSubContentMapper.addSC(subContentBean, userId, mainContentId);
    }
}
